package user;

import Operation.IoOperation;
import book.Bookshelf;

public abstract class User {
    public String name;

    public IoOperation [] ioOperations;

    public User(String name) {
        this.name = name;
    }

    public abstract int menu();

    public void DoOperation(int choice, Bookshelf bookshelf){
        ioOperations[choice].work(bookshelf);
    }
}
